﻿@{
    Layout = Themes.GetResourcePath("Layouts", "Main.cshtml");
}
<div id="mainBody">
    <div id="mainSection">
        <div id="calendarBar" class="border-bottom">
            <div id="calendarLinks">
                <span>
                    <a href="@Href("~/Event/Add")" title="이벤트 추가">
                        <img src="@Themes.GetResourcePath("Images", "AddEvent16x16.png")" alt="이벤트 추가" title="이벤트 추가" />
                    </a>
                </span>
            </div>
            <div id="calendarViews">
                <a href="@Href("~/Calendar/ChangeView/List")">목록</a> -
                <a href="@Href("~/Calendar/ChangeView/Month")">달</a>
            </div>
        </div>

        @if (RequestData.GetValue("InfoPaneTitle") != null) {
        <div id="information">
            <h2 class="border-bottom">@RequestData.GetValue("InfoPaneTitle")</h2>
            <div id="informationPane">
                @RenderBody()
            </div>
        </div>
        } else {
            @RenderBody();
        }
        
        <div id="calendarPane">
            @RenderPage(Themes.GetResourcePath("Sections", "CalendarView.cshtml"))
        </div>
    </div>
    <div id="leftBar">
        @RenderPage(Themes.GetResourcePath("Sections", "LeftBar.cshtml"))
    </div>
</div>